<html>
  <head>
    <title>Flash cards!</title>
    <link rel="stylesheet" type"text/css" href="static/master.css" />
  </head>
  <body>
    <div id="form">
      {% if entries %}
        <p>Here are the last {{ entries|length }} entries:</p>
        <dl>
          {% for e in entries %}
            <dt>{{ e.entry }}</dt><dd>{{ e.definition }}</dd>
          {% endfor %}
        </dl><br />
      {% else %}
        <p>You have no previous entries.</p>
      {% endif %}
      <form method="post" action="entry_mode">
        Entry: <input type="text" name="entry" /><br />
        Definition: <input type="text" name="definition" /><br />
        <input type="submit" />
      </form>
    </div>

    <iframe src="http://mini.wordreference.com/mini/index.aspx?dict=iten&w={{ lookup }}"
        name="WRmini" />
  </body>
</html>

